package face.pay.api.cpn.api;

import face.pay.api.cpn.service.ICpnCardService;
import face.pay.util.ResultMessage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 查找当前用户在有没有商家优惠券
 */
@RestController
@RequestMapping("/cpn_card")
@Slf4j
public class ApiCpnCardQuery {

    @Autowired
    private ICpnCardService iCpnCardService;

    /**
     * 查询商家
     * @param json
     * @return
     */
  @RequestMapping("/queryData")
  public ResultMessage queryCpnCards(@RequestBody  String json){
      return iCpnCardService.queryData(json);
  }



}
